Page({


    onReady (){
        this.videoContext = wx.createVideoContext('videoDemo');
    },
    inputText: '',
    bindInputBlur (e) {
        this.inputText = e.detail.value
      },
    rendDanMu(){
        this.videoContext.sendDanmu({
            text: this.inputText,
            color: 'red'
        })
    }


})